package day04.homework;

public class Test2 {
  public static void main(String[] args) {
    short s = 1;
    s = s + 2;//s + 2的结果是int类型，不能直接赋值给short
    short x = 1;
    x += 1;//x += 1的结果是short类型，可以直接赋值给short
  }
}
